﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<PhotoGallery.Entities.FavoritsPhoto>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Photos
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Favorits Photos</h2>

<% for (var i = 0; i < Model.Count(); i++)
 { %>

    <div class="item">
    <h2> <%= (Model.ElementAt(i)).UserId%>  </h2>

<% if ((Model.ElementAt(i)).UserId != null)
   { %>
    <div class="smallimage">
         <img src="<%= Url.Action("GetSmallImageFavorits", "Home", new { Model.UserId })%>"/> </div>
    </div>
        <% } %>




<% } %>

</asp:Content>
